package entity

import "gorm.io/gorm"

type Attachment struct {
	gorm.Model
	AttachmentId int64  `gorm:"column:attachment_id;bigint(20);unsigned;not null;default:0;uniqueIndex"`
	Path         string `gorm:"column:path;varchar(255);not null;default:'';comment:'URL Path部分'"`
	SavePath     string `gorm:"column:save_path;varchar(255);not null;default:'';comment:'保存路径'"`
	Md5          string `gorm:"column:md5;char(32);not null;default:'';comment:'MD5'"`
	Sha1         string `gorm:"column:sha1;char(40);not null;default:'';comment:'sha1'"`
}
